// package cn.autumnorange.app.common.rpc.security;
//
// import
// cn.autumnorange.app.common.consumer.rpc.interceptor.filter.HttpServletRequestRPCWrapperRequestContextFilter;
// import cn.autumnorange.app.common.consumer.security.AbstractResourceServerConfigurer;
// import org.springframework.context.annotation.Configuration;
// import
// org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
// import org.springframework.security.config.annotation.web.builders.HttpSecurity;
// import
// org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
// import org.springframework.security.web.savedrequest.RequestCache;
//
// @Configuration
// @EnableResourceServer
// @EnableGlobalMethodSecurity(prePostEnabled = true)
// public class ResourceServerConfigurer extends AbstractResourceServerConfigurer {
//  private HttpServletRequestRPCWrapperRequestContextFilter
//      httpServletRequestRPCWrapperRequestContextFilter;
// 注入自定义的RequestCache
//  @Override
//  public void configure(HttpSecurity http) throws Exception {
//    http.setSharedObject(RequestCache.class, new HttpSessionRequestCacheWrapper());
//    super.configure(http);
//    http.authorizeRequests().anyRequest().permitAll();
//  }
// }
